package cate.common.table.guild;

import cate.common.table.ESheet;

public class GuildSkillSheet extends ESheet<GuildSkillRow> {
    @Override
    public String getSheetName() {
        return "公会技能";
    }

    public GuildSkillRow onGetRow(byte type, byte job, int order, int level) {
        for (GuildSkillRow row : list) {
            if (row.job == job && row.type == type && order == row.order && level == row.level) {
                return row;
            }
        }
        return null;
    }

    public GuildSkillRow onGetRow(byte type, byte job, int order) {
        for (GuildSkillRow row : list) {
            if (row.job == job && row.type == type && order == row.order) {
                return row;
            }
        }
        return null;
    }
}
